using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class GravityReversalItem : Item
{
    public override void Effect(GameObject go)
    {
        Rigidbody2D rb = go.GetComponent<Rigidbody2D>();
        rb.velocity = Vector3.zero;
        
        BirdControl bc=rb.GetComponent<BirdControl>();
        bc.force = 0;
        bc.myGravity = Vector3.zero;
        bc.MyDir = (BirdControl.Dir)(-(int)bc.MyDir);
    }
    public GravityReversalItem()
    {
        
    }
}
